/**
 *博尔信基础开发平台
 *<br> 版权声明：厦门博尔信软件有限公司版权所有,违者必究
 *<br> Copyright:  Copyright (c) 2012
 *<br> Company:pearlsoft
 *<br> @author 蒋勇华
 *<br> 2012-5-7
 *<br> @version 1.0
 *————————————————————————————————————
 *修改记录
 *    修改者：
 *    修改时间：
 *    修改原因：
 *——————————————————————————————————————
 */
package com.pearlsoft.webapp.sysmgr.org.service;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.pearlsoft.webapp.core.dao.RecrodRowMapper;
import com.pearlsoft.webapp.core.dataset.Record;
import com.pearlsoft.webapp.core.dataset.SimpleRecord;

/**
 *描述： 
 *
 * 
 */
public class OrgRowMapperHelper {
	public static RecrodRowMapper<Record> generalRowMapper(){
		return new  RecrodRowMapper<Record>(){
			@Override
			public Record mapRow(ResultSet rs, int rowNum)
					throws SQLException {
				SimpleRecord recrod = new SimpleRecord();
				recrod.setValue("ORG_ID", rs.getString(1));
				recrod.setValue("ORG_SIMPLE_NAME", rs.getString(2));
				recrod.setValue("ORG_FULL_NAME", rs.getString(3));
				recrod.setValue("ORG_PARENT_ID", rs.getString(4));
				recrod.setValue("ORG_ORDER", rs.getInt(5));
				recrod.setValue("C_STATUS", rs.getString(6));
				recrod.setValue("C_REMARK", rs.getString(7));
				return recrod;
			}
		};
	}
}
